package com.ruoyi.shopping_products.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shopping_products.mapper.PdPdPoolMapper;
import com.ruoyi.shopping_products.domain.PdPdPool;
import com.ruoyi.shopping_products.service.IPdPdPoolService;

/**
 * 用户商品关联Service业务层处理
 * 
 * @author lzy
 * @date 2023-10-28
 */
@Service
public class PdPdPoolServiceImpl implements IPdPdPoolService 
{
    @Autowired
    private PdPdPoolMapper pdPdPoolMapper;

    /**
     * 查询用户商品关联
     * 
     * @param id 用户商品关联主键
     * @return 用户商品关联
     */
    @Override
    public PdPdPool selectPdPdPoolById(Long id)
    {
        return pdPdPoolMapper.selectPdPdPoolById(id);
    }

    /**
     * 查询用户商品关联列表
     * 
     * @param pdPdPool 用户商品关联
     * @return 用户商品关联
     */
    @Override
    public List<PdPdPool> selectPdPdPoolList(PdPdPool pdPdPool)
    {
        return pdPdPoolMapper.selectPdPdPoolList(pdPdPool);
    }

    /**
     * 新增用户商品关联
     * 
     * @param pdPdPool 用户商品关联
     * @return 结果
     */
    @Override
    public int insertPdPdPool(PdPdPool pdPdPool)
    {
        return pdPdPoolMapper.insertPdPdPool(pdPdPool);
    }

    /**
     * 修改用户商品关联
     * 
     * @param pdPdPool 用户商品关联
     * @return 结果
     */
    @Override
    public int updatePdPdPool(PdPdPool pdPdPool)
    {
        return pdPdPoolMapper.updatePdPdPool(pdPdPool);
    }

    /**
     * 批量删除用户商品关联
     * 
     * @param ids 需要删除的用户商品关联主键
     * @return 结果
     */
    @Override
    public int deletePdPdPoolByIds(Long[] ids)
    {
        return pdPdPoolMapper.deletePdPdPoolByIds(ids);
    }

    /**
     * 删除用户商品关联信息
     * 
     * @param id 用户商品关联主键
     * @return 结果
     */
    @Override
    public int deletePdPdPoolById(Long id)
    {
        return pdPdPoolMapper.deletePdPdPoolById(id);
    }
}
